import React from "react";
import { NavBar, Space, Toast } from "antd-mobile";
import { useNavigate } from "react-router-dom";
import styles from '../css/navbar.module.css'
function Index(props) {
  let nav = useNavigate();
  const back = () => {
    nav(-1);
  };
  return (
    <div className={styles.box}>
      <NavBar onBack={back}>{props.title}</NavBar>
    </div>
  );
}

export default Index;
